#!/bin/sh

set -e

#CONTEXT: chroot on host
#PURPOSE: Allows mysqld to create temporary files when restoring backups

cat <<EOF >>/etc/apparmor.d/local/usr.sbin.mysqld
  /tmp/ rw,
  /tmp/** rwk,
EOF
